package com.ts.enterprise.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 *
 *
 * @author Administrator*/
@Getter
@AllArgsConstructor
public enum UserStatusEnum implements BaseEnum {
    //默认 0 状态 1 在职  2 离职   5 注销
    defaultValue(0, "默认"),
    onJob(1, "在职"),
    leave(2, "离职"),
    logout(5, "注销"),
    ;

    private Integer code;
    private String desc;


    private static List<Integer> showList;

    static {
        List<Integer> list = new ArrayList<>();
        list.add(onJob.getCode());
        list.add(leave.getCode());
        showList = list;
    }

    public static List<Integer> showList() {
        return showList;
    }

}
